gtk4.git
11 years agocss: add properties for outline-radius
Cosimo Cecchi [Thu, 1 May 2014 16:11:23 +0000 (18:11 +0200)]
css: add properties for outline-radius

Both a shorthand and individual properties. This is not officially part
of the CSS standard, but there's precedence for it at least in Mozilla:
https://developer.mozilla.org/en-US/docs/Web/CSS/-moz-outline-radius

11 years agotreeview: respect focus-padding when rendering focus
Cosimo Cecchi [Thu, 1 May 2014 16:07:25 +0000 (18:07 +0200)]
treeview: respect focus-padding when rendering focus

Adwaita had a hack to work this around, but now that we're moving focus
ring rendering into GTK, we can just fix the treeview instead.

11 years agotreeview: Always call size request funcs with valid out pointers
Benjamin Otte [Thu, 1 May 2014 13:16:17 +0000 (15:16 +0200)]
treeview: Always call size request funcs with valid out pointers

Not doing so causes crashes since
a158a2aa48c8023f99963642cc2657bff207b82NULLd

11 years agorevealer: Remove unneeded checks
Benjamin Otte [Wed, 30 Apr 2014 07:27:22 +0000 (09:27 +0200)]
revealer: Remove unneeded checks

Size vfuncs always get non-null out variables passed, so no need to
check for NULL.

11 years agopopover: Remove unneeded checks
Benjamin Otte [Wed, 30 Apr 2014 07:26:28 +0000 (09:26 +0200)]
popover: Remove unneeded checks

Size vfuncs always get non-null out variables passed, so no need to
check for NULL.

11 years agomenuitem: Remove unneeded checks
Benjamin Otte [Wed, 30 Apr 2014 07:24:17 +0000 (09:24 +0200)]
menuitem: Remove unneeded checks

Size vfuncs always get non-null out variables passed, so no need to
check for NULL.

11 years agomenu: Remove unneeded checks
Benjamin Otte [Wed, 30 Apr 2014 07:23:04 +0000 (09:23 +0200)]
menu: Remove unneeded checks

Size vfuncs always get non-null out variables passed, so no need to
check for NULL.

11 years agolevelbar: Remove unneeded checks
Benjamin Otte [Wed, 30 Apr 2014 07:22:29 +0000 (09:22 +0200)]
levelbar: Remove unneeded checks

Size vfuncs always get non-null out variables passed, so no need to
check for NULL.

11 years agoeventbox: Remove unneeded checks
Benjamin Otte [Wed, 30 Apr 2014 07:21:54 +0000 (09:21 +0200)]
eventbox: Remove unneeded checks

Size vfuncs always get non-null out variables passed, so no need to
check for NULL.

11 years agolistbox: Remove unneeded checks
Benjamin Otte [Wed, 30 Apr 2014 07:19:33 +0000 (09:19 +0200)]
listbox: Remove unneeded checks

Size vfuncs always get non-null out variables passed, so no need to
check for NULL.

11 years agoframe: Remove unneeded checks
Benjamin Otte [Wed, 30 Apr 2014 07:17:31 +0000 (09:17 +0200)]
frame: Remove unneeded checks

Size vfuncs always get non-null out variables passed, so no need to
check for NULL.

11 years agoheaderbar: Remove unneeded checks
Benjamin Otte [Wed, 30 Apr 2014 07:17:07 +0000 (09:17 +0200)]
headerbar: Remove unneeded checks

Size vfuncs always get non-null out variables passed, so no need to
check for NULL.

11 years agoinfobar: Remove unneeded checks
Benjamin Otte [Wed, 30 Apr 2014 07:16:04 +0000 (09:16 +0200)]
infobar: Remove unneeded checks

Size vfuncs always get non-null out variables passed, so no need to
check for NULL.

11 years agogrid: Remove unneeded checks
Benjamin Otte [Wed, 30 Apr 2014 07:15:24 +0000 (09:15 +0200)]
grid: Remove unneeded checks

Size vfuncs always get non-null out variables passed, so no need to
check for NULL.

11 years agoscrolledwindow: Remove unneeded checks
Benjamin Otte [Wed, 30 Apr 2014 07:12:40 +0000 (09:12 +0200)]
scrolledwindow: Remove unneeded checks

Size vfuncs always get non-null out variables passed, so no need to
check for NULL.

11 years agoswitch: Remove unneeded checks
Benjamin Otte [Wed, 30 Apr 2014 07:11:58 +0000 (09:11 +0200)]
switch: Remove unneeded checks

Size vfuncs always get non-null out variables passed, so no need to
check for NULL.

11 years agotoolbar: Remove unneeded checks
Benjamin Otte [Wed, 30 Apr 2014 07:11:22 +0000 (09:11 +0200)]
toolbar: Remove unneeded checks

Size vfuncs always get non-null out variables passed, so no need to
check for NULL.

11 years agotreeview: Remove unneeded checks
Benjamin Otte [Wed, 30 Apr 2014 07:10:27 +0000 (09:10 +0200)]
treeview: Remove unneeded checks

Size vfuncs always get non-null out variables passed, so no need to
check for NULL.

11 years agoviewport: Remove unneeded checks
Benjamin Otte [Wed, 30 Apr 2014 07:09:39 +0000 (09:09 +0200)]
viewport: Remove unneeded checks

Size vfuncs always get non-null out variables passed, so no need to
check for NULL.

11 years agoviewport: Implement hfw properly
Benjamin Otte [Wed, 30 Apr 2014 07:08:00 +0000 (09:08 +0200)]
viewport: Implement hfw properly

Previously, the code would fall back on GtkBin's hfw implementation
which didn't account for padding and borders.

11 years agoviewport: Use a convenience function
Benjamin Otte [Wed, 30 Apr 2014 06:51:11 +0000 (08:51 +0200)]
viewport: Use a convenience function

That function looks longer than not using it, but we'll need it in the
next commit.

11 years agoviewport: Request 2x border-width
Benjamin Otte [Wed, 30 Apr 2014 06:47:00 +0000 (08:47 +0200)]
viewport: Request 2x border-width

It's nice that bugs get pointed out in code comments. Fixing them would
probably have been preferrable though.

11 years agowidget: Remove unneeded checks
Benjamin Otte [Wed, 30 Apr 2014 06:42:52 +0000 (08:42 +0200)]
widget: Remove unneeded checks

Size vfuncs always get non-null out variables passed, so no need to
check for NULL.

11 years agoflowbox: Remove unneeded checks
Benjamin Otte [Wed, 30 Apr 2014 06:41:54 +0000 (08:41 +0200)]
flowbox: Remove unneeded checks

Size vfuncs always get non-null out variables passed, so no need to
check for NULL.

11 years agocombobox: Remove unneeded checks
Benjamin Otte [Wed, 30 Apr 2014 06:39:06 +0000 (08:39 +0200)]
combobox: Remove unneeded checks

Size vfuncs always get non-null out variables passed, so no need to
check for NULL.

11 years agobutton: Remove unneeded checks
Benjamin Otte [Wed, 30 Apr 2014 06:38:39 +0000 (08:38 +0200)]
button: Remove unneeded checks

Size vfuncs always get non-null out variables passed, so no need to
check for NULL.

11 years agoalignment: Remove unneeded checks
Benjamin Otte [Wed, 30 Apr 2014 06:37:52 +0000 (08:37 +0200)]
alignment: Remove unneeded checks

Size vfuncs always get non-null out variables passed, so no need to
check for NULL.

11 years agoarrow: Remove unneeded checks
Benjamin Otte [Wed, 30 Apr 2014 06:36:48 +0000 (08:36 +0200)]
arrow: Remove unneeded checks

Size vfuncs always get non-null out variables passed, so no need to
check for NULL.

11 years agospinner: Remove unneeded checks
Benjamin Otte [Wed, 30 Apr 2014 06:35:24 +0000 (08:35 +0200)]
spinner: Remove unneeded checks

Size vfuncs always get non-null out variables passed, so no need to
check for NULL.

11 years agomodules: remove the pixbuf engine directory
Cosimo Cecchi [Thu, 1 May 2014 09:22:11 +0000 (11:22 +0200)]
modules: remove the pixbuf engine directory

This is not used anywhere, and is commented out of the build because it
doesn't compile. Time for some spring cleaning...

11 years agoUpdated POTFILES.skip
Piotr Drąg [Wed, 30 Apr 2014 20:14:24 +0000 (22:14 +0200)]
Updated POTFILES.skip

11 years agoGtkSearchBar: fix the template
Matthias Clasen [Wed, 30 Apr 2014 01:46:38 +0000 (21:46 -0400)]
GtkSearchBar: fix the template

There was a mismatch between GtkSearchBar being derived from GtkBin
and the template claiming the parent to be GtkBox.

11 years agowidget-factory: populate the second page more
Matthias Clasen [Wed, 30 Apr 2014 01:43:11 +0000 (21:43 -0400)]
widget-factory: populate the second page more

Add back a menubar example that was lost a while ago, and also
include a searchbar and an infobar.

11 years agowidget-factory: rearrange page 2 a bit
Matthias Clasen [Tue, 29 Apr 2014 20:51:44 +0000 (16:51 -0400)]
widget-factory: rearrange page 2 a bit

11 years agoreftests: Add test for latest commit
Benjamin Otte [Tue, 29 Apr 2014 17:34:44 +0000 (19:34 +0200)]
reftests: Add test for latest commit

Check that the label gets linebroken properly.

11 years agowindow: Subtract shadow from passed in width for height
Benjamin Otte [Tue, 29 Apr 2014 17:26:06 +0000 (19:26 +0200)]
window: Subtract shadow from passed in width for height

... and height for width in size requests. Fixes mislayout in
control-center universal access panel.

11 years agowidgets: Remove (GtkTickCallback) casts
Benjamin Otte [Wed, 16 Apr 2014 13:36:22 +0000 (15:36 +0200)]
widgets: Remove (GtkTickCallback) casts

Instead, make the functions conform to the prototype, so that casting
isn't needed.

11 years agoGtkMenuSectionBox: Don't show separators for nested subsections
Matthias Clasen [Tue, 29 Apr 2014 16:17:40 +0000 (12:17 -0400)]
GtkMenuSectionBox: Don't show separators for nested subsections

...unless they are labeled.

To implement this, keep track of the nesting depth of section boxes,
starting from 0 for the toplevel and the submenu ones, and only
insert unlabeled separators if the depth is at most 1.

11 years agoGtkMenuSectionBox: Always show separators for labeled sections
Matthias Clasen [Tue, 29 Apr 2014 15:48:52 +0000 (11:48 -0400)]
GtkMenuSectionBox: Always show separators for labeled sections

...unless they are empty.

11 years agoAdd a comment with rules for separators
Matthias Clasen [Tue, 29 Apr 2014 15:50:54 +0000 (11:50 -0400)]
Add a comment with rules for separators

11 years agoAdded template test case to builder test.
Juan Pablo Ugarte [Mon, 28 Apr 2014 21:10:39 +0000 (18:10 -0300)]
Added template test case to builder test.

11 years agoGtkMenuSectionBox: don't leak
Matthias Clasen [Tue, 29 Apr 2014 14:18:22 +0000 (10:18 -0400)]
GtkMenuSectionBox: don't leak

This wasn't fully fleshed out yet.

11 years agowidget-factory: Add a horizontal-buttons example
Matthias Clasen [Tue, 29 Apr 2014 10:21:11 +0000 (06:21 -0400)]
widget-factory: Add a horizontal-buttons example

Sadly, we don't have good icons for payment methods...

11 years agotreeview: Fix prelight redraw when adjustment changes
Alexander Larsson [Tue, 29 Apr 2014 07:08:31 +0000 (09:08 +0200)]
treeview: Fix prelight redraw when adjustment changes

When the adjustment changes (due to e.g. a mouse wheel scroll) we update
the prelight. The part that un-prelights the previous prelight was
broken by the the pixel cache, as it called update_prelight in the
middle of the scrolling operation, where the windows were moved
but the tree_view->priv->dy was not changed to the new value. This
caused the updates to the pixel cache to go to the wrong place.

We fix this by fully doing the scroll before we update_prelight().

https://bugzilla.gnome.org/show_bug.cgi?id=728284

11 years ago3.13.1
Matthias Clasen [Tue, 29 Apr 2014 00:50:02 +0000 (20:50 -0400)]
3.13.1

11 years agoUpdate output of a11y tests
Matthias Clasen [Tue, 29 Apr 2014 02:55:44 +0000 (22:55 -0400)]
Update output of a11y tests

These are all affected by the addition of the action_box in
GtkDialog or by the switch to popovers in GtkMenuButton.

11 years agoGtkMenuShell: We want separators in submenus
Matthias Clasen [Tue, 29 Apr 2014 02:46:25 +0000 (22:46 -0400)]
GtkMenuShell: We want separators in submenus

This was probably an oversight when adding the merge_separators
parameter. Without this change, the testsuite/gtk/gtkmenu test
fails.

11 years agoGtkMenuShell: Don't use a non-existing property
Matthias Clasen [Tue, 29 Apr 2014 01:53:35 +0000 (21:53 -0400)]
GtkMenuShell: Don't use a non-existing property

GtkMenuTrackerItem::visible was removed a few commits ago.
It is not necessary to bind visible anyway, since the menu
tracker will insert and remove items as their visibility
changes.

11 years agotestmenubutton: Add a toggle for use-popover
Matthias Clasen [Tue, 29 Apr 2014 01:53:03 +0000 (21:53 -0400)]
testmenubutton: Add a toggle for use-popover

11 years agogdkwindow: ignore shape on client-side windows when recomputing visible regions
Carlos Garnacho [Mon, 28 Apr 2014 19:19:40 +0000 (21:19 +0200)]
gdkwindow: ignore shape on client-side windows when recomputing visible regions

Rendering doesn't do much about clipping drawing operations to the window shape,
although invalidation applies the shape to every window, leaving possibly trails
of "overrendered" content. So ensure the shape portions get invalidated too when
the window is moved/resized.

https://bugzilla.gnome.org/show_bug.cgi?id=729095

11 years agopopover: Always make room for the tail on all sides on size request
Carlos Garnacho [Mon, 28 Apr 2014 18:34:49 +0000 (20:34 +0200)]
popover: Always make room for the tail on all sides on size request

Now that popovers may snap to any side with enough space, make enough
room on every side when requesting size, so that there's no w/h differences
at the time of setting the child allocation.

https://bugzilla.gnome.org/show_bug.cgi?id=729097

11 years agoGtkRecentChooserMenu: Set current uri before activating an item.
Juan Pablo Ugarte [Mon, 28 Apr 2014 17:46:48 +0000 (14:46 -0300)]
GtkRecentChooserMenu: Set current uri before activating an item.

When activating an item using mnemonics GtkRecentChooserMenu does not select a
item before calling the item-activated signal thus
gtk_recent_chooser_get_current_uri() always return the last selected item
instead of the activated one.

Fixes Bug 495105 "Open recent file keyboard shortcuts do not work correctly"

11 years agoRaleigh: fix a typo
Matthias Clasen [Mon, 28 Apr 2014 19:38:17 +0000 (15:38 -0400)]
Raleigh: fix a typo

11 years agoGtkDialog: protect against show_all
Matthias Clasen [Mon, 28 Apr 2014 19:36:34 +0000 (15:36 -0400)]
GtkDialog: protect against show_all

The real reason for the problem that the just reverted change
was supposed to address is that testfilechooser uses show_all
to tease out places where composite dialogs don't properly
protect their internals against unintended showing. Well,
lets do that, then.

11 years agoRevert "GtkFileChooserDialog: Avoid a bottom border in the dialog"
Matthias Clasen [Mon, 28 Apr 2014 19:12:09 +0000 (15:12 -0400)]
Revert "GtkFileChooserDialog: Avoid a bottom border in the dialog"

This reverts commit d871105fa8fd20f9be0d07953ee2dd7d90b4c84f.

11 years agoUpdated Slovenian translation
Matej Urbančič [Mon, 28 Apr 2014 19:09:16 +0000 (21:09 +0200)]
Updated Slovenian translation

11 years agoUpdated Slovenian translation
Matej Urbančič [Mon, 28 Apr 2014 19:07:38 +0000 (21:07 +0200)]
Updated Slovenian translation

11 years agoDocument iconic section support
Matthias Clasen [Sat, 26 Apr 2014 18:38:07 +0000 (14:38 -0400)]
Document iconic section support

https://bugzilla.gnome.org/show_bug.cgi?id=727477

11 years agoAdd an example of iconic rendering
Matthias Clasen [Wed, 2 Apr 2014 05:08:39 +0000 (01:08 -0400)]
Add an example of iconic rendering

testpopover now shows several examples of icon buttons.

https://bugzilla.gnome.org/show_bug.cgi?id=727477

11 years agoGtkMenuSectionBox: add support for iconic sections
Matthias Clasen [Mon, 28 Apr 2014 18:18:39 +0000 (14:18 -0400)]
GtkMenuSectionBox: add support for iconic sections

Sections that have the display-hint attribute set to
"horizontal-boxes" will be rendered as a row of icon
buttons, instead of menuitem-like.

11 years agoGtkMenuTrackerItem: Add support for display-hint
Matthias Clasen [Mon, 28 Apr 2014 18:18:06 +0000 (14:18 -0400)]
GtkMenuTrackerItem: Add support for display-hint

This commit adds a getter for the display-hint attribute.

11 years agoGtkModelButton: Add an iconic mode
Matthias Clasen [Sat, 26 Apr 2014 17:50:55 +0000 (13:50 -0400)]
GtkModelButton: Add an iconic mode

In iconic mode, model buttons will be styled like regular icon
buttons, preferring to show only the icon if one is set, falling
back to showing the label.

https://bugzilla.gnome.org/show_bug.cgi?id=727477

11 years agoGtkMenuTrackerItem: Add support for verb-icons
Matthias Clasen [Sat, 26 Apr 2014 18:15:01 +0000 (14:15 -0400)]
GtkMenuTrackerItem: Add support for verb-icons

When rendering iconic sections, we want to use icons for verbs,
and we want to differentiate these in the menu model, to keep
the icon attribute reserved for nouns.

https://bugzilla.gnome.org/show_bug.cgi?id=727477

11 years agoGtkPopover: new approach to menu model binding
Ryan Lortie [Mon, 28 Apr 2014 15:55:52 +0000 (17:55 +0200)]
GtkPopover: new approach to menu model binding

Instead of using GtkMenuTracker to flatten the sections into a single
linear menu, handle the sections ourselves by nesting boxes.

Each section gets an inner and outer box.  The inner box numbers its
children in the way that the tracker instructs.  The outer box
containes the inner box and the separator, if appropriate.

Having the two separate boxes will allow us to change the orientation of
the inner box if we want to pack widgets horizontally within a section.

11 years agoGtkMenuTracker: add 'merge_sections' flag
Ryan Lortie [Mon, 28 Apr 2014 12:20:08 +0000 (14:20 +0200)]
GtkMenuTracker: add 'merge_sections' flag

Add the possibility of a GtkMenuTracker that performs no section
merging.  Instead, it will report an item in the form of a separator for
subsections.  It is then possible to get a separate tracker for the
subsection contents by using gtk_menu_tracker_new_for_item_link().

11 years agoGtkMenuTracker: don't specialise "submenu" link
Ryan Lortie [Mon, 28 Apr 2014 12:01:35 +0000 (14:01 +0200)]
GtkMenuTracker: don't specialise "submenu" link

We have some API in GtkMenuTracker and GtkMenuTrackerItem that is
specifically designed to deal with submenus.

Generalise these APIs to take a 'link_name' parameter that we always
give as G_MENU_SUBMENU for now.  In the future, this will allow creating
trackers for other types of links, such as sections.

11 years agoGtkMenuTracker: make "is-visible" a property
Ryan Lortie [Mon, 28 Apr 2014 08:12:51 +0000 (10:12 +0200)]
GtkMenuTracker: make "is-visible" a property

Make this a property just like all of the other things and make the APIs
for accessing it non-private (but add a note that they are not intended
to be used).

11 years agoGtkMenuTracker: remove "visible" property
Ryan Lortie [Mon, 28 Apr 2014 08:12:25 +0000 (10:12 +0200)]
GtkMenuTracker: remove "visible" property

This is in conflict with the "is-visible" pseudo-property which is about
to be promoted to being an actual property.

11 years agoW32: Update the css to match the .modelbutton->.button.menuitem transition
Руслан Ижбулатов [Mon, 28 Apr 2014 15:51:51 +0000 (15:51 +0000)]
W32: Update the css to match the .modelbutton->.button.menuitem transition

11 years agoRename the modelbutton style class
Matthias Clasen [Sun, 27 Apr 2014 22:48:06 +0000 (18:48 -0400)]
Rename the modelbutton style class

This is not a great name to use in themes; instead, add the
menuitem class, so themes can use .button.menuitem for styles
that are specific to menuitem-like buttons.

11 years agoAdd a popover menu example to gtk3-widget-factory
Matthias Clasen [Sun, 27 Apr 2014 16:13:06 +0000 (12:13 -0400)]
Add a popover menu example to gtk3-widget-factory

11 years agoAdd a paned example to gtk3-widget-factory
Matthias Clasen [Sun, 27 Apr 2014 14:28:43 +0000 (10:28 -0400)]
Add a paned example to gtk3-widget-factory

11 years agoFix testmenubutton
Matthias Clasen [Sat, 26 Apr 2014 21:47:21 +0000 (17:47 -0400)]
Fix testmenubutton

The menu model examples was messing up the order of its items.

11 years agoGtkModelButton: improve size allocation
Matthias Clasen [Sat, 26 Apr 2014 20:37:16 +0000 (16:37 -0400)]
GtkModelButton: improve size allocation

Only reserve size for an indicator if at least one sibling
actually has an indicator.

11 years agoActually set the default for GtkMenuButton::use-popover
Matthias Clasen [Sat, 26 Apr 2014 18:40:52 +0000 (14:40 -0400)]
Actually set the default for GtkMenuButton::use-popover

The previous commit changed the property declaration, but
omitted the actual change of the default.

11 years agogdkscreen-wayland: Emit monitors-changed when the output scale changes
Adel Gadllah [Sat, 26 Apr 2014 12:08:51 +0000 (14:08 +0200)]
gdkscreen-wayland: Emit monitors-changed when the output scale changes

https://bugzilla.gnome.org/show_bug.cgi?id=729013

11 years agoAdd Adwaita to the list of default icon themes
Matthias Clasen [Sat, 26 Apr 2014 14:14:38 +0000 (10:14 -0400)]
Add Adwaita to the list of default icon themes

Hardcode the fallback to Adwaita. I'm leaving gnome in here for
now, since we're in the middle of the transition. It will be
removed before 3.14.

11 years agoFixed crash in GtkLockButton if a button with permission set to NULL is clicked.
Juan Pablo Ugarte [Fri, 25 Apr 2014 22:18:28 +0000 (19:18 -0300)]
Fixed crash in GtkLockButton if a button with permission set to NULL is clicked.

https://bugzilla.gnome.org/show_bug.cgi?id=728992

11 years agoGtkWindow: Avoid a critical in F10 handling
Matthias Clasen [Sat, 26 Apr 2014 02:07:13 +0000 (22:07 -0400)]
GtkWindow: Avoid a critical in F10 handling

The focus widget might be NULL, and we were forgetting to take
that possibility into account in one place.

11 years agotests: add missing files to EXTRA_DIST
Matthias Clasen [Thu, 24 Apr 2014 05:36:36 +0000 (01:36 -0400)]
tests: add missing files to EXTRA_DIST

https://bugzilla.gnome.org/show_bug.cgi?id=728846

11 years agoAdd missing templates to testdialog
Matthias Clasen [Thu, 24 Apr 2014 05:06:14 +0000 (01:06 -0400)]
Add missing templates to testdialog

This makes the template test cases not crash. The templates also
serve to test the new action widget support.

https://bugzilla.gnome.org/show_bug.cgi?id=728846

11 years agoGtkDialog: Update suggested-action more carefully
Matthias Clasen [Thu, 24 Apr 2014 05:32:50 +0000 (01:32 -0400)]
GtkDialog: Update suggested-action more carefully

We were not really handling all cases correctly here. We want
the suggested-action style class to only be set on headerbar
buttons, and it should be set on the default widget. Ensure
this by syncing the suggested-action style class with the
default style class. As a side-effect, setting has-default
on an action widget in ui files will now have the expected
effect.

https://bugzilla.gnome.org/show_bug.cgi?id=728846

11 years agoGtkDialog: Support adding action widgets in ui files
Matthias Clasen [Thu, 24 Apr 2014 04:28:13 +0000 (00:28 -0400)]
GtkDialog: Support adding action widgets in ui files

GtkDialog has convenience API for adding action widgets that are
either placed in the action area or the headerbar. This commit
makes the same functionality available from GtkBuilder ui files
by specifying "action" as the child type.

https://bugzilla.gnome.org/show_bug.cgi?id=728846

11 years agoopenbsd: properly set len for gtkmountoperation-x11
Antoine Jacoutot [Fri, 25 Apr 2014 12:37:59 +0000 (14:37 +0200)]
openbsd: properly set len for gtkmountoperation-x11

sysctl(3) is the correct way to get the lenght for len in this case.
Also drop unused headers and change style to match the rest of the file.

11 years agoGtkMenuButton: use popovers by default
Matthias Clasen [Fri, 25 Apr 2014 03:35:18 +0000 (23:35 -0400)]
GtkMenuButton: use popovers by default

When constructing from a menu model, use popovers by default.
This change has the potential to cause some size problems for
applications with big gear menus, so we're doing it early in
the cycle to uncover and fix those.

11 years agogdk/win32: VK_SNAPSHOT maps to GDK_Print
Marc-André Lureau [Mon, 15 Oct 2012 16:07:46 +0000 (18:07 +0200)]
gdk/win32: VK_SNAPSHOT maps to GDK_Print

Also, I am not sure the above VK_PRINT -> GDK_Print mapping is
correct, but it doesn't hurt yet.

https://bugzilla.gnome.org/show_bug.cgi?id=686170

11 years agowin32: add more clipboard data checks to avoid crash
Marc-André Lureau [Tue, 22 Apr 2014 17:47:47 +0000 (19:47 +0200)]
win32: add more clipboard data checks to avoid crash

It may happen that the received clipboard data is empty, but
if it's of type image/bmp, gtk+ will crash:

gdk_property_change: 00030AD4 GDK_SELECTION image/bmp REPLACE 8*0 bits:
... delayed rendering
gdk_selection_send_notify_for_display: 00030AD4 CLIPBOARD image/bmp
GDK_SELECTION (no-op)
_gdk_win32_selection_convert_to_dib: 1252003C image/bmp

Program received signal SIGSEGV, Segmentation fault.
0x749a9f40 in msvcrt!memmove () from C:\Windows\syswow64\msvcrt.dll

Thread 1 (Thread 2248.0x1b34):
target=0xc07b) at gdkselection-win32.c:1292
at gdkevents-win32.c:3498
wparam=8, lparam=0) at gdkevents-win32.c:232
message=773, wparam=8, lparam=0)
    at gdkevents-win32.c:263
C:\Windows\syswow64\user32.dll
C:\Users\rugoosse\AppData\Local\virt-viewer\bin\libpangocairo-1.0-0.dll
wparam=0, lparam=-1687549457)
    at gdkevents-win32.c:248
C:\Users\rugoosse\AppData\Local\virt-viewer\bin\libpangocairo-1.0-0.dll

https://bugzilla.gnome.org/show_bug.cgi?id=728745

11 years agoW32: Add modelbutton styles
Руслан Ижбулатов [Wed, 23 Apr 2014 16:10:33 +0000 (16:10 +0000)]
W32: Add modelbutton styles

According to what i've been told, modelbuttons are supposed to look
flat, like menu items.

This is basically an improved copy of the menuitem styles.

https://bugzilla.gnome.org/show_bug.cgi?id=728810

11 years agoW32: Add a set of "focused" styles to checkmarks
Руслан Ижбулатов [Wed, 23 Apr 2014 16:01:06 +0000 (16:01 +0000)]
W32: Add a set of "focused" styles to checkmarks

This prevents checkmarks in modelbuttons from being styled as buttons
(apparently, modelbuttons apply "focused" to their children, unlike
normal buttons).

https://bugzilla.gnome.org/show_bug.cgi?id=728808

11 years agoW32: Fix dummy prelight style for check/radio buttons
Руслан Ижбулатов [Wed, 23 Apr 2014 15:58:45 +0000 (15:58 +0000)]
W32: Fix dummy prelight style for check/radio buttons

Use a dummy transparent gradient instead of actual color (which screws up
focus rectangle on prelight), and apply to non-prelight state as well.

https://bugzilla.gnome.org/show_bug.cgi?id=728807

11 years agoW32: remove the blue "selected" rectangle when activating a checkbutton
Руслан Ижбулатов [Wed, 23 Apr 2014 15:57:24 +0000 (15:57 +0000)]
W32: remove the blue "selected" rectangle when activating a checkbutton

https://bugzilla.gnome.org/show_bug.cgi?id=728806

11 years agoAdd all version macros to the docs
Matthias Clasen [Thu, 24 Apr 2014 03:25:30 +0000 (23:25 -0400)]
Add all version macros to the docs

11 years agoAdd GDK_VERSION_3_14
Matthias Clasen [Thu, 24 Apr 2014 03:25:07 +0000 (23:25 -0400)]
Add GDK_VERSION_3_14

https://bugzilla.gnome.org/show_bug.cgi?id=728814

11 years agoUpdated Hebrew translation
Yosef Or Boczko [Wed, 23 Apr 2014 09:50:51 +0000 (12:50 +0300)]
Updated Hebrew translation

11 years agodialog: keep action area stretched out
Matthias Clasen [Wed, 23 Apr 2014 04:05:15 +0000 (00:05 -0400)]
dialog: keep action area stretched out

Adding an extra box in between had the side effect of
making the action area no longer go all across the dialog.
Setting hexpand compensates for this.

11 years agowayland: handle the wl_touch interface
Carlos Garnacho [Thu, 17 Apr 2014 12:19:39 +0000 (14:19 +0200)]
wayland: handle the wl_touch interface

The events are routed through a new slave device with type
GDK_SOURCE_TOUCHSCREEN, minimal tracking of touches is done
to keep the state for each of those.

https://bugzilla.gnome.org/show_bug.cgi?id=728426

11 years agowayland: Separate master devices from seat capabilities
Carlos Garnacho [Thu, 17 Apr 2014 11:15:08 +0000 (13:15 +0200)]
wayland: Separate master devices from seat capabilities

The master pointer/keyboard pair should never disappear or be
inconsistent. The seat capabilities are now reflected through
slave devices, those may come and go freely as the seat
capabilities change. This also enables adding further capabilities
to handle eg. touch.

https://bugzilla.gnome.org/show_bug.cgi?id=728426

11 years agoDND: go back to a timeout for cancel animation
Matthias Clasen [Tue, 15 Apr 2014 00:10:25 +0000 (17:10 -0700)]
DND: go back to a timeout for cancel animation

Using a tick callback does not really make sense here, since we
are not drawing in a window, but moving a toplevel around.
https://bugzilla.gnome.org/show_bug.cgi?id=728183

11 years agoGtkFileChooserDialog: Avoid a bottom border in the dialog
Matthias Clasen [Wed, 23 Apr 2014 03:08:43 +0000 (23:08 -0400)]
GtkFileChooserDialog: Avoid a bottom border in the dialog

We recently started to respect border-width on the action_area
again, so set its border-width to 0 so it doesn't get in the way.

https://bugzilla.gnome.org/show_bug.cgi?id=722211

11 years agodialog: add a box around the action area to use for styling
William Jon McCann [Wed, 9 Apr 2014 18:30:37 +0000 (14:30 -0400)]
dialog: add a box around the action area to use for styling

If we want to set style properties that include the area
of the border-width part of action_area we need to use a
parent box.

https://bugzilla.gnome.org/show_bug.cgi?id=722211